home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / kcl / akcl / akcl1615.lha / mp / makefile < prev    next >
Makefile  |  1991-06-28  |  2KB  |  103 lines

  1. AR = ar qc
  2. MPDIR=.
  3.  
  4. # default mp files (overridden by machine.defs)
  5. MPFILES= $(MPDIR)/mpi.o $(MPDIR)/mp2.o  $(MPDIR)/libmport.a
  6.  
  7. # begin makedefs
  8. AKCLDIR=/usr/public/akcl
  9. SHELL=/bin/sh
  10. MACHINE=hp300-bsd
  11.  
  12. # Machine dependent makefile definitions for hp300 running 4.3bsd(mt xinu)
  13.  
  14. LBINDIR=/usr/local/bin
  15.  
  16. OFLAG    =  -O 
  17. LIBS    = -lm -lg 
  18. ODIR_DEBUG= -g
  19.  
  20. # This CC string will be used for compilation of the system,
  21. # and also in the compiler::*cc* variable for later compilation of
  22. # lisp files.
  23.  
  24. CC = gcc -fwritable-strings -msoft-float -DVOL=volatile -I$(AKCLDIR)/o 
  25. MAINDIR = /public/kcl
  26.  
  27. # Enable the fastloading mechanism which does not use ld -A
  28. # requires c/rel_.. machine dependent code.
  29.  
  30. RSYM    = rsym
  31. SFASL    = $(ODIR)/sfasl.o
  32.  
  33. #  Use the mp.s file on 68k machine 
  34.  
  35. MPFILES= $(MPDIR)/mpi-bsd68k.o   $(MPDIR)/libmport.a
  36.  
  37.  
  38. # When using SFASL it is good to have (si::build-symbol-table)
  39. INITFORM=(si::build-symbol-table)
  40.  
  41. # Use symbolic links
  42. SYMB=-s
  43.  
  44. LIBFILES=bsearch.o
  45.  
  46. # the  make to use for saved_kcp the profiler.
  47. KCP=kcp-bsd
  48. # end makedefs
  49.  
  50.  
  51. OBJS= mp_divul3.o  mp_bfffo.o mp_mulul3.o mp2.o mp_dblremsl3.o mp_dblremul3.o ${MPDIR}/gnulib1.o
  52.  
  53. all:
  54.     make all1 "MPFILES=$(MPFILES)"
  55.  
  56. all1: ${MPFILES}
  57.  
  58. $(MPDIR)/libmport.a: $(OBJS)
  59.     rm -f libmport.a
  60.     $(AR) libmport.a ${OBJS}
  61.     ../xbin/if-exists /usr/bin/ranlib "/usr/bin/ranlib libmport.a"
  62.  
  63. .s.o:
  64.     $(AS) $*.s -o $*.o
  65.  
  66. .c.o:
  67.     $(CC)  -c $(OFLAG) -I../h -I. $(CFLAGS) $(ODIR_DEBUG) $*.c
  68.  
  69. mpi-bsd68k.s: mpi.c
  70.     gcc -S  -I../h -O mpi.c -o mpi-bsd68k.s
  71.  
  72. mpi-sparc.s: mpi.c
  73.     gcc -S -I../h -O mpi.c -o mpi-sparc.s
  74.  
  75. ${MPDIR}/mpi-386.o: ${MPDIR}/mpi-386.s
  76.     $(AS) $*.s -o $*.o
  77.  
  78. ${MPDIR}/mpi-386.s: mpi.c
  79.     mygcc -S -I../h -O mpi.c -o mpi-386.s
  80.  
  81. ${MPDIR}/mpi-gcc.o: mpi.c
  82.     gcc -c -O -I../h mpi.c -o mpi-gcc.o
  83.  
  84. ${MPDIR}/gnulib1.o:
  85.     cc -c -O gnulib1.c
  86.  
  87. clean:
  88.     rm *.o *.a
  89.  
  90. make.defs:
  91.     (cd .. ; for v in h/*.defs; do echo $$v: ; fgrep MPFILES $$v ; done ; true) > make.defs
  92.  
  93.  
  94. tar:
  95.     (cd .. ; ls mp/*.c mp/*.s h/*.h h/*.defs mp/makefile mp/make.defs)  | sed -e '/foo/d' > tmpx
  96.     (cd .. ; tar cvf - `cat mp/tmpx`) | compress -c > ${HOME}/tmp/mp.tar.Z
  97.     rm -f tmpx
  98.  
  99.  
  100.  
  101.  
  102.  
  103.